﻿using System;
using System.Collections.Generic;
using System.Drawing;

namespace yt
{
    public enum KeyType
    {
        V_MOUSE,
        V_KEY
    }

    

    public class ScreenPoint
    {
        public Point ScPoint { get; set; }
        public int DeloyTime { get; set; }
        public KeyType KeyType { get; set; }
        public int keyInput { get; set; }


        public ScreenPoint()
        {
            ScPoint = new Point(0, 0);
            DeloyTime = 1000;
            KeyType = KeyType.V_MOUSE;
        }

        public ScreenPoint(Point screenPoint, int Deloy)
        {
            ScPoint = screenPoint;
            DeloyTime = Deloy;
            KeyType = KeyType.V_MOUSE;
        }

        public ScreenPoint(Point screenPoint)
        {
            ScPoint = screenPoint;
            DeloyTime = 1000;
            KeyType = KeyType.V_MOUSE;
        }

        public ScreenPoint(int key)
        {
            keyInput = key;
            KeyType = KeyType.V_KEY;
        }

    }

    public enum LoopType
    {
        VRamdom,
        VPotint
    }

    public enum RunStatus
    {
        VReady=0,
        VRuning,
        VFinish
    }
    public class Runner
    {
        public long ID { get; set; }

        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public bool Started { get; set; }
        public List<ScreenPoint> ScreenPoints { get; set; }
        public bool IsNeedLoop { get; set; }
        public LoopType LoopType { get; set; }
        public List<ScreenPoint> LoopEvent { get; set; }
        public RunStatus RunStatus { get; set; }
        public int MinX { get; set; }
        public int MaxX { get; set; }
        public int MinY { get; set; }
        public int MaxY { get; set; }
        public int LoopCount { get; set; }
        public int LoopDeloy { get; set; }
        public bool IsResetScreen { get; set; }
        public int ResetDeloy { get; set; }
        public bool IsReseted { get; set; }
        public string WeekDay { get; set; }



        public void Go()
        {
            
        }
    }
}
